package com.ruoyi.system.domain.request;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信退款请求参数
 */
@Data
public class WeChatChargeBackRequest implements Serializable {


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("transaction_id")
    private String transactionId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty("out_trade_no")
    private String outTradeNo;

    @JsonProperty("out_refund_no")
    private String outRefundNo;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String reason;

    @JsonProperty("notify_url")
    private String notifyUrl;

    private WeChatChargeBackAmountRequest amount;

    @Data
    public static class WeChatChargeBackAmountRequest {

        private Integer refund;

        private Integer total;

        private String currency = "CNY";
    }

}
